package spring.chatroom.java_chatroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import spring.chatroom.java_chatroom.pojo.model.FriendTable;

import java.util.List;

@Mapper
public interface FriendTableMapper extends BaseMapper<FriendTable> {
    List<Integer> getFriendTableBySessionId(int sessionId);

    List<FriendTable> getFriendId(int userId);

    List<FriendTable> isFriend(Integer userId, Integer friendId);

    Integer isFriendAndDelete(Integer userId, Integer friendId);

}
